let state = {
    timeArr:[],
    methodsArr:[]
};
//唯一可以修改仓库数据地方【工人】
let mutations = {

    TIME(state, data) {
        state.timeArr.push(data);
    },
    METHODS(state,data){
        state.methodsArr.push(data);
    }
};
//可以处理业务逻辑【if、异步语句等等】
let actions = {};
//仓库计算属性
let getters = {};

//对外暴露小仓库
export default {
    state,
    mutations,
    actions,
    getters
}




